package com.wind.taobao.api.trade.traderate.rest
{
	import com.wind.taobao.core.webservice.TaobaoResponse;

	/**
	 * taobao.traderate.add Response
	 * @author fxy
	 *
	 */
	public class TradeRateAddResponse extends TaobaoResponse
	{
		[Bindable]
		public var tid:String; // 	 Y 	 交易ID。
		[Bindable]
		public var order_id:String; // 	N 	子订单ID。
		[Bindable]
		public var created:String; // 	Y 	评价时间。格式:yyyy-MM-dd HH:mm:ss 

		public function TradeRateAddResponse(response:TaobaoResponse=null)
		{
			super(response);
			initResultss();
		}

		private function initResultss():void
		{
			if (body != null && this.isSuccess)
			{
				if (body["rsp"].hasOwnProperty("tid"))
					tid=body["rsp"]["tid"];
				if (body["rsp"].hasOwnProperty("order_id"))
					order_id=body["rsp"]["order_id"];
				if (body["rsp"].hasOwnProperty("created"))
					created=body["rsp"]["created"];
			}
		}

	}
}